package com.woniu.cloud.movie.movie3assembly.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author tiangle
 * @since 2022-01-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("movie")
@ApiModel(value="Movie对象", description="")
public class Movie implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "电影id")
      @TableId(value = "movie_id", type = IdType.AUTO)
    private Integer movieId;

    @ApiModelProperty(value = "电影名")
    private String movieName;

    @ApiModelProperty(value = "电影照片")
    private String movieImg;

    @ApiModelProperty(value = "电影信息")
    private String message;

    @ApiModelProperty(value = "上映时间")
    @TableField("startTime")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "真实价格")
    private Double realprice;

    @ApiModelProperty(value = "时长")
    private Long timelength;

    @ApiModelProperty(value = "演员")
    private String movieActors;

    @ApiModelProperty(value = "下架时间")
    @TableField("endTime")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "是否删除")
    @TableField("isDelete")
    private Integer isDelete;

    @ApiModelProperty(value = "上映状态")
    private Integer upstatus;


}
